#include "StdAfx.h"
#include "PropChangeSupport.h"
#include "PropChangeEvent.h"
#include "Event.h"
#include "EventQ.h"
using namespace System;
using namespace SHGame::Events;
PropChangeSupport::PropChangeSupport(Object^ src)
{
	this->bean = src;
}

void PropChangeSupport::Fire(String^ prop, Object^ old, Object^ nu) {
	PropChangeEvent^ pevt = gcnew PropChangeEvent(prop, old, nu);
	Event^ evt = gcnew Event(bean, pevt);
	EventQ::Push(evt);
}